package com.longnows.appserver.repository;

import com.longnows.appserver.model.User;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
import java.util.Optional;

@Repository
public interface UserRespository extends JpaRepository<User,Long> {

    Optional<User> findByOpenid(String openid);

    User findFirstById(Long id);
}
